home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 5.3 for Indy R4400
/
IRIX 5.3 for Indy R4400 175MHz.img
/
dist
/
eoe2.idb
/
usr
/
lib
/
perl
/
sys
/
syslog.ph.z
/
syslog.ph
Wrap
Text File
|
1995-02-28
|
2KB
|
68 lines
if (!defined &_SYS_SYSLOG_H) {
eval 'sub _SYS_SYSLOG_H {1;}';
eval 'sub LOG_EMERG {0;}';
eval 'sub LOG_ALERT {1;}';
eval 'sub LOG_CRIT {2;}';
eval 'sub LOG_ERR {3;}';
eval 'sub LOG_WARNING {4;}';
eval 'sub LOG_NOTICE {5;}';
eval 'sub LOG_INFO {6;}';
eval 'sub LOG_DEBUG {7;}';
eval 'sub LOG_PRIMASK {0x07;}';
eval 'sub LOG_PRI {
local($p) = @_;
eval "(($p) & &LOG_PRIMASK)";
}';
eval 'sub LOG_MAKEPRI {
local($fac, $pri) = @_;
eval "((($fac) << 3) | ($pri))";
}';
if (defined &SYSLOG_NAMES) {
eval 'sub INTERNAL_NOPRI {0x10;}';
eval 'sub INTERNAL_MARK { &LOG_MAKEPRI( &LOG_NFACILITIES, 0);}';
}
eval 'sub LOG_KERN {(0<<3);}';
eval 'sub LOG_USER {(1<<3);}';
eval 'sub LOG_MAIL {(2<<3);}';
eval 'sub LOG_DAEMON {(3<<3);}';
eval 'sub LOG_AUTH {(4<<3);}';
eval 'sub LOG_SYSLOG {(5<<3);}';
eval 'sub LOG_LPR {(6<<3);}';
eval 'sub LOG_NEWS {(7<<3);}';
eval 'sub LOG_UUCP {(8<<3);}';
eval 'sub LOG_CRON {(9<<3);}';
eval 'sub LOG_AUDIT {(13<<3);}';
eval 'sub LOG_LFMT {(14<<3);}';
eval 'sub LOG_LOCAL0 {(16<<3);}';
eval 'sub LOG_LOCAL1 {(17<<3);}';
eval 'sub LOG_LOCAL2 {(18<<3);}';
eval 'sub LOG_LOCAL3 {(19<<3);}';
eval 'sub LOG_LOCAL4 {(20<<3);}';
eval 'sub LOG_LOCAL5 {(21<<3);}';
eval 'sub LOG_LOCAL6 {(22<<3);}';
eval 'sub LOG_LOCAL7 {(23<<3);}';
eval 'sub LOG_NFACILITIES {24;}';
eval 'sub LOG_FACMASK {0x03f8;}';
eval 'sub LOG_FAC {
local($p) = @_;
eval "((($p) & &LOG_FACMASK) >> 3)";
}';
if (defined &SYSLOG_NAMES) {
}
eval 'sub LOG_MASK {
local($pri) = @_;
eval "(1 << ($pri))";
}';
eval 'sub LOG_UPTO {
local($pri) = @_;
eval "((1 << (($pri)+1)) - 1)";
}';
eval 'sub LOG_PID {0x01;}';
eval 'sub LOG_CONS {0x02;}';
eval 'sub LOG_ODELAY {0x04;}';
eval 'sub LOG_NDELAY {0x08;}';
eval 'sub LOG_NOWAIT {0x10;}';
eval 'sub LOG_PERROR {0x20;}';
}
1;